package com.yyx.demo1.entity;

public class Result {
    //状态码
    private int status;
    //提示信息
    private String message;
    //数据
    private Object data;

    /*
    需返回数据时使用
     */
    public Result(int status, String message, Object data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    /*
    无需返回数据时使用
     */
    public Result(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
